<!DOCTYPE html><html><head><title>Backbone Collection Test</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><script src="../../lib/jquery.min.js"></script><script src="../../lib/underscore.js"></script><script src="../../lib/backbone.js"></script></head><body><script type="text/javascript">var Song = Backbone.Collection.extend({
    initialize:function(){
        console.log("Music is the answer");
    }
});
var Album = Backbone.Collection.extend({
    model: Song
});
var song1 = new Song({name: "How Bizarre", artist: "OMC"});
var song2 = new Song({name: "Sexual Healing", artist: "Marvin Gaye"})
var song3 = new Song({name: "Talk It Over In Bed", artist: "OMC"});
var myAlbum = new Album([song1, song2, song3]);
console.log(myAlbum.models); // [song1, song2, song3]</script></body></html>